package cn.edu.ctbu.dp01.constant;

public enum REnum {
    UNKOWN_ERR(-999, "未知错误"),
    COMMON_ERR(-10, "一般性错误"),
    LOGIN_ERR(-2, "出错了，不正确的用户名密码！!"),
    QUERY_ERR(-3,"查询条件出错！"),
    SUCCESS(1, "成功");

    private Integer code;
    private String msg;  // 这里要改成 msg

    // 构造函数
    REnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    // 获取 code
    public Integer getCode() {
        return code;
    }

    // 获取 msg
    public String getMsg() {
        return msg;
    }
}
